## Process this file with automake to produce Makefile.in


if PLATFORM_WIN32
        AM_CPPFLAGS = -DPACKAGE_LOCALE_DIR=\""../$(DATADIRNAME)/locale"\" 
else
        AM_CPPFLAGS = -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 
endif

AM_CPPFLAGS += -DPACKAGE_SRC_DIR=\""$(srcdir)"\"  \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\"       \
	$(curtain_CFLAGS) 

AM_CFLAGS =\
	 -Wall                                    \
	 -g -L$(libdir)

bin_PROGRAMS = curtain

curtain_SOURCES =   \
	callbacks.c \
	callbacks.h \
	curtain.c   \
	curtain.h   \
	utils.c     \
	utils.h

curtain_LDFLAGS = 

if !PLATFORM_WIN32
if WITH_GNU_LD
curtain_LDFLAGS += -Wl,--export-dynamic
endif
else
#This create a windows executable instead an msdos ones
curtain_LDFLAGS += -mwindows -lintl -liberty -limagehlp -lole32 -luuid
endif

curtain_LDADD = $(curtain_LIBS)
